#include <iostream>
using namespace std;

void swap(int &a, int &b) {
	int temp = a;
	a = b;
	b = temp;
}
int main() {
	int x = 5;
	int y = 6;
	const int *a = &x;
	swap(x, y);
	cout << x <<ends << y<<endl;
	system("pause");
	return 0;
}